import request from '@/utils/request';

/**
 * 查询企业列表
 * @returns {R extends true ? Promise<RequestResponse<any>> : Promise<any>}
 */
export async function getEnterprises(data) {
  return request(MC_PATH + '/api/web/customer/nc', {
    method: 'GET',
    data,
  });
}

/**
 * 绑定企业
 *
 * @param id
 * @return
 */
export async function bindEnterprises(data) {
  return request(MC_PATH + '/api/customer/user/rel', {
    method: 'POST',
    requestType: 'form',
    data: data,
  });
}
